package at.ac.tuwien.infosys.aic11.services;


import javax.jws.WebParam;
import javax.jws.WebService;

import at.ac.tuwien.infosys.aic11.dto.CreditRequest;
import at.ac.tuwien.infosys.aic11.dto.Offer;
import at.ac.tuwien.infosys.aic11.fault.UnknownCustomerFault;
import at.ac.tuwien.infosys.aic11.fault.UnknownDurationFault;
import at.ac.tuwien.infosys.aic11.fault.UnknownMoneyFault;
import at.ac.tuwien.infosys.aic11.fault.UnknownRatingFault;
import at.ac.tuwien.infosys.aic11.fault.UnknownRequestFault;


@WebService(name = "ContractManagementService" ,targetNamespace = "http://services.aic11.infosys.tuwien.ac.at/")
public interface ContractManagement {

	public Offer getOffer(@WebParam(name="credit_request") CreditRequest cr) throws UnknownRequestFault, UnknownCustomerFault, UnknownMoneyFault, UnknownRatingFault, UnknownDurationFault;
	
	public void deleteOffer(@WebParam(name="credit_request") CreditRequest cr)  throws UnknownRequestFault;
	
}
